<!--%import("filter/insert_group.xml")-->
<!--%import("filter/delete_group.xml")-->

<!--#include("_project_header.html")-->

<h3 class="xeAdmin">{$lang->cmd_manage_member_group}</h3>
<p class="summary">{$lang->about_project_act[$act]}</p>

<form id="fo_group">
<input type="hidden" name="group_srl" value=""/>
</form>

<table cellspacing="0" class="rowTable">
<thead>
    <tr>
        <th scope="col" class="half_wide"><div>{$lang->group_title}</div></th>
        <th scope="col" class="half_wide"><div>{$lang->description}</div></th>
        <th scope="col"><div>{$lang->regdate}</div></th>
        <th scope="col"><div>{$lang->is_default}</div></th>
        <th scope="col" colspan="2"><div>&nbsp;</div></th>
    </tr>
</thead>
<tbody>
    <!--@if(!count($group_list))-->
    <tr>
        <td colspan="7">{$lang->msg_group_is_null}</td>
    </tr>
    <!--@end-->
    <!--@foreach($group_list as $group_srl => $group_info)-->
    <tr class="row{$cycle_idx}">
        <td class="nowrap">{$group_info->title}</td>
        <td>{nl2br($group_info->description)}&nbsp;</td>
        <td class="date center nowrap">{zdate($group_info->regdate,"Y-m-d H:i:s")}</td>
        <td class="center number"><!--@if($group_info->is_default=='Y')-->Y<!--@else-->&nbsp;<!--@end--></td>
        <td class="modify"><a href="{getUrl('group_srl',$group_info->group_srl)}">{$lang->cmd_modify}</a></td>
        <td class="delete">
            <!--@if($group_info->is_default!='Y' && $group_info->is_admin !='Y')-->
            <a href="#" onclick="doDeleteGroup({$group_info->group_srl});return false;">{$lang->cmd_delete}</a>
            <!--@else-->
            &nbsp;
            <!--@end-->
        </td>
    </tr>
    <!--@end-->
</tbody>
</table>

<br />


<!-- 그룹 추가 -->
<form action="./" method="get" onsubmit="return procFilter(this, insert_group)">
<input type="hidden" name="group_srl" value="{$selected_group->group_srl}" />
<!--@if($selected_group->group_srl && $selected_group->is_default == 'Y')-->
<input type="hidden" name="is_default" value="Y" />
<!--@end-->

    <table cellspacing="0" class="rowTable">
    <tr>
        <th scope="row"><div>{$lang->group_title}</div></th>
        <td class="wide">
            <input type="text" name="title" value="{htmlspecialchars($selected_group->title)}" class="inputTypeText w400" id="groupTitle"/>
            <a href="{getUrl('','module','module','act','dispModuleAdminLangcode','target','groupTitle')}" onclick="popopen(this.href);return false;" class="buttonSet buttonSetting"><span>{$lang->cmd_find_langcode}</span></a>
        </td>
    </tr>
    <!--@if(!$selected_group->group_srl || $selected_group->is_default != 'Y')-->
    <tr class="row2">
        <th scope="row"><div>{$lang->is_default}</div></th>
        <td><input type="checkbox" name="is_default" value="Y" class="checkbox" <!--@if($selected_group->is_default=='Y')-->checked="checked"<!--@end--> /> {$lang->about_member_default}</td>
    </tr>
    <!--@end-->
    <tr>
        <th scope="row"><div>{$lang->description}</div></th>
        <td><textarea name="description" class="inputTypeTextArea w400">{$selected_group->description}</textarea></td>
    </tr>
    <tr class="row2">
        <th colspan="2" class="button">
            <!--@if($selected_group->group_srl)-->
            <span class="button black strong"><input type="submit" value="{$lang->cmd_modify}" accesskey="s" /></span>
            <span class="button"><input type="button" value="{$lang->cmd_cancel}" onclick="location.href=current_url.setQuery('group_srl','');return false;"/></span>
            <!--@else-->
            <span class="button black strong"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span>
            <!--@end-->
        </th>
    </tr>
    </table>


</form>

<!--#include("_project_footer.html")-->
